﻿using System;

namespace Motar
{
    
    /// <summary>
    /// 
    /// </summary>
    public static class Localization
    {

        /// <summary>
        /// 
        /// </summary>
        private static Func<ILocaleResolverFacade> _localeResolverFacadeAccessor;

        /// <summary>
        /// 
        /// </summary>
        public static ILocaleResolverFacade Current
        {
            get { return _localeResolverFacadeAccessor.Invoke(); }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="localeResolverFacadeAccessor"></param>
        public static void Initialize(Func<ILocaleResolverFacade> localeResolverFacadeAccessor)
        {
            _localeResolverFacadeAccessor = localeResolverFacadeAccessor;
        }
    }
}
